package com.itheima.stock.service;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;

/**
 * @author 28188
 */
public interface UserService {

    /**
     * 获取验证码
     *
     * @return CaptchaVO
     */
    CaptchaVO generateCaptcha();

    /**
     * 登录
     *
     * @param loginDTO 登录参数
     * @return 登录结果
     */
    LoginVO login(LoginDTO loginDTO);
}